import request from '@/utils/request'
// 查询题库信息
export function fetchData(data) {
  return request({
    url: '/repo/page',
    method: 'post',
    data
  })
}
// 添加
export function save(data) {
  return request({
    url: '/repo/save',
    method: 'post',
    data
  })
}
// 单个删除
export function deleteById(id) {
  return request({
    url: `/repo/delete/${id}`,
    method: 'get',
  })
}  
// 批删
export function deleteBatch(data) {
  return request({
    url: `/repo/deleteBatch/`,
    method: 'post',
    data
  })
} 